﻿using FreeSql.DataAnnotations;
using HuiLian.Common.BaseModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace HuiLian.Model.Platform
{
    /// <summary>
    /// 模型参数管理
    /// </summary>
	[Table(Name = "model_param")]
    public class ModelParamEntity:Entity
    {
        /// <summary>
        /// 决策树数量 {10, 20, 50, 100, 200, 500}
        /// </summary>
        public int n_estimators { get; set; }

        /// <summary>
        /// 节点划分最小样本数 {2，4，8}
        /// </summary>
        public int min_samples_split { get; set; }

        /// <summary>
        /// 叶子节点最小样本数 {1，2，4}
        /// </summary>
        public long min_samples_leaf { get; set; }

        /// <summary>
        /// 自动寻优 {0, 1} auto置为1，可实现参数自动寻优，但很耗时
        /// </summary>
        public long auto { get; set; }

        /// <summary>
        /// 分级闽值 (0.5, 1)
        /// </summary>
        public float threshold { get; set; }
    }
}
